<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
use think\Session;
class Issue extends Controller{
    /****
     Class register     常见问题
     *@
    */
    public function index(){
        $issue = Db::name('issue')->select();
        if($issue){
           $arr = [
               'state'     => 1,
               'issue'   =>$issue,
               'message'   => "请求成功"
            ]; 
            
        }else{
            $arr = [
               'state'     => 0,
               'message'   => "请求失败"
            ];
        }
    return json($arr);
    }




}